package com.dom.common.model.standard;

import lombok.Data;

/**
 * 响应消息模型
 * @Author xllei
 * @param <T> 返回数据类型
 */
@Data
public class ResponseModel<T> extends ModelHead {
    private String rspCode;
    private String rspMsg;
    private T data;

    public ResponseModel(){
        rspCode = null;
        rspMsg = null;
        data = null;
    }

    public ResponseModel(String rspCode, String rspMsg){
        this.rspCode = rspCode;
        this.rspMsg = rspMsg;
    }

    public ResponseModel(String rspCode, String rspMsg, T data){
        this.rspCode = rspCode;
        this.rspMsg = rspMsg;
        this.data = data;
    }
}
